<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.5.1.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<span>点击任意地方获取坐标</span>
		<script type="text/javascript">
			$(function(){
				$("html").click(function(event){
					var event = event || window.event;
					alert("坐标:[" + event.clientX + "," + event.clientY + "]");
				})				
			})
			
		</script>
	</body>
</html>
